package com.glsc.ngateway.common.base.domainmapper.cmdb;
import com.glsc.ngateway.common.base.domain.mysql.cmdb.CmdbDiskDetail;
import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.cmdb.FlowFormDiskOutDetail;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: zhengyr
 * @Desc: 配件入库流程表到业务表转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormDiskOutMapper {

    FlowFormDiskOutMapper INSTANCE = Mappers.getMapper(FlowFormDiskOutMapper.class);

    @Mapping(target = "diskDetailId", ignore = true)
    @Mapping(target = "diskDetailCode", ignore = true)
    @Mapping(target = "deviceCode", ignore = true)
    @Mapping(target = "isDelete", ignore = true)
    @Mapping(target = "locationId", ignore = true)
    @Mapping(target = "cmdbDiskStandard", ignore = true)
    CmdbDiskDetail dto2domain(FlowFormDiskOutDetail dto);
    List<CmdbDiskDetail> dto2domain(List<FlowFormDiskOutDetail> dto);
}
